projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb41043
)
Match all characters in optional argument of \documentclass
author
Arash Esbati
<arash@gnu.org>
Mon, 13 Feb 2017 08:22:12 +0000
(09:22 +0100)
committer
Tassilo Horn
<tsdh@gnu.org>
Mon, 13 Feb 2017 16:07:12 +0000
(17:07 +0100)
* lisp/textmodes/reftex.el (reftex-TeX-master-file): Match all
characters in optional argument containing name of the main file.
lisp/textmodes/reftex.el
patch
|
blob
|
history
diff --git
a/lisp/textmodes/reftex.el
b/lisp/textmodes/reftex.el
index 18b35981f82249d138c224a724fe7762631c5112..9754d2b20ff6ee3745db5bc47c58c9b8c0d3d1af 100644
(file)
--- a/
lisp/textmodes/reftex.el
+++ b/
lisp/textmodes/reftex.el
@@
-352,7
+352,7
@@
If the symbols for the current master file do not exist, they are created."
((save-excursion
(goto-char (point-min))
(re-search-forward
- "^[[:space:]]*\\\\documentclass\\[\\([
[:word:].
]+\\)\\]{subfiles}"
+ "^[[:space:]]*\\\\documentclass\\[\\([
^]
]+\\)\\]{subfiles}"
nil t))
(match-string-no-properties 1))
;; AUCTeX is loaded. Use its mechanism.